<include file="Base/header" />
<div class="js-check-wrap">
	<form class="wrap js-ajax-form" method='post'>
		<div class="table-actions">
			<button class="btn js-ajax-submit" type="submit" data-action="{:U('listorders')}">排序</button>
			<button class="btn js-ajax-submit" type="submit" data-action="{:U('setStatus',array('status'=>1))}" data-subcheck="true">显示</button>
			<button class="btn js-ajax-submit" type="submit" data-action="{:U('setStatus',array('status'=>0))}" data-subcheck="true">隐藏</button>
			<button class="btn js-ajax-submit" type="submit" data-action="{:U('delete')}" data-subcheck="true">删除</button>			
		</div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab" class='js-check-wrap'>
			<thead>
				<tr>
					<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
					<th width="50">排序</th>
					<th width="50">ID</th>
					<th width="200">标题</th>
					<th width="100">链接</th>
					<th width="50">封面</th>
					<th width="50">是否显示</th>
					<th width="100">操作</th>
				</tr>
			</thead>
			<foreach name="list" item="vo">
			<tr>
				<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.slide_id}"></td>
				<td><input name='listorders[{$vo.slide_id}]' class="input input-order mr5" type='text' size='3' value='{$vo.listorder}'></td>
				<td>{$vo.slide_id}</td>
				<td class="left"><a href="{:U('edit',array('id'=>$vo['slide_id'],'cid'=>$_REQUEST[cid]))}">{$vo.slide_name}</a></td>
				<td>{$vo.slide_url}</td>
				<td>
					<eq name='vo.type' value='1'>
					
						<a href="{:sp_get_asset_upload_path($vo['slide_pic'])}" target="_blank">
							<img src="{:sp_get_asset_upload_path($vo['slide_pic'])}" width=100 alt="" />
						</a>
						<else/>
						视频
					</eq>
					
				</td>
				<td><img src="__ROOT__/Public/Img/action_{$vo.status}.png" border="0"></td>
				<td>
					<a href="{:U('edit',array('id'=>$vo['slide_id'],'cid'=>$_REQUEST[cid]))}">编辑</a>
					<a href="{:U('delete',array('ids'=>$vo['slide_id']))}" class="ajax-get confirm">删除</a>
				</td>
			</tr>
			</foreach>
		
		</table>	
	
	</form>

</div>


<include file="Base/footer" />
</body>
</html>